home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Interfaces / PInterfaces / ASDebugging.p < prev    next >
Encoding:
Text File  |  1994-11-11  |  6.1 KB  |  176 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        ASDebugging.p
  3.  
  4.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  5.                  All rights reserved.
  6.  
  7.      Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. }
  16.  
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT ASDebugging;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __ASDEBUGGING__}
  27. {$SETC __ASDEBUGGING__ := 1}
  28.  
  29. {$I+}
  30. {$SETC ASDebuggingIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33.  
  34. {$IFC UNDEFINED __APPLEEVENTS__}
  35. {$I AppleEvents.p}
  36. {$ENDC}
  37. {    Errors.p                                                    }
  38. {        ConditionalMacros.p                                        }
  39. {    Types.p                                                        }
  40. {    Memory.p                                                    }
  41. {        MixedMode.p                                                }
  42. {    OSUtils.p                                                    }
  43. {    Events.p                                                    }
  44. {        Quickdraw.p                                                }
  45. {            QuickdrawText.p                                        }
  46. {    EPPC.p                                                        }
  47. {        PPCToolbox.p                                            }
  48. {            AppleTalk.p                                            }
  49. {        Processes.p                                                }
  50. {            Files.p                                                }
  51. {    Notification.p                                                }
  52.  
  53. {$IFC UNDEFINED __APPLESCRIPT__}
  54. {$I AppleScript.p}
  55. {$ENDC}
  56. {    OSA.p                                                        }
  57. {        AEObjects.p                                                }
  58. {        Components.p                                            }
  59. {    TextEdit.p                                                    }
  60.  
  61. {$PUSH}
  62. {$ALIGN MAC68K}
  63. {$LibExport+}
  64.  
  65. CONST
  66. {     This mode flag can be passed to OSASetProperty or OSASetHandler
  67.         and will prevent properties or handlers from being defined in a context
  68.         that doesn't already have bindings for them. An error is returned if
  69.         a current binding doesn't already exist. }
  70.     kOSAModeDontDefine            = $0001;
  71.  
  72. {*************************************************************************
  73.     Component Selectors
  74. *************************************************************************}
  75.     kASSelectSetPropertyObsolete = $1101;
  76.     kASSelectGetPropertyObsolete = $1101;
  77.     kASSelectSetHandlerObsolete    = $1103;
  78.     kASSelectGetHandlerObsolete    = $1104;
  79.     kASSelectGetAppTerminologyObsolete = $1105;
  80.     kASSelectSetProperty        = $1106;
  81.     kASSelectGetProperty        = $1107;
  82.     kASSelectSetHandler            = $1108;
  83.     kASSelectGetHandler            = $1109;
  84.     kASSelectGetAppTerminology    = $110A;
  85.     kASSelectGetSysTerminology    = $110B;
  86.     kASSelectGetPropertyNames    = $110C;
  87.     kASSelectGetHandlerNames    = $110D;
  88.  
  89. {*************************************************************************
  90.     Context Accessors
  91. *************************************************************************}
  92.  
  93. FUNCTION OSASetProperty(scriptingComponent: ComponentInstance; modeFlags: LONGINT; contextID: OSAID; {CONST}VAR variableName: AEDesc; scriptValueID: OSAID): OSAError;
  94.     {$IFC NOT GENERATINGCFM}
  95.     INLINE $2F3C, 16, $1106, $7000, $A82A;
  96.     {$ENDC}
  97. FUNCTION OSAGetProperty(scriptingComponent: ComponentInstance; modeFlags: LONGINT; contextID: OSAID; {CONST}VAR variableName: AEDesc; VAR resultingScriptValueID: OSAID): OSAError;
  98.     {$IFC NOT GENERATINGCFM}
  99.     INLINE $2F3C, 16, $1107, $7000, $A82A;
  100.     {$ENDC}
  101. FUNCTION OSAGetPropertyNames(scriptingComponent: ComponentInstance; modeFlags: LONGINT; contextID: OSAID; VAR resultingPropertyNames: AEDescList): OSAError;
  102.     {$IFC NOT GENERATINGCFM}
  103.     INLINE $2F3C, 12, $110C, $7000, $A82A;
  104.     {$ENDC}
  105. FUNCTION OSASetHandler(scriptingComponent: ComponentInstance; modeFlags: LONGINT; contextID: OSAID; {CONST}VAR handlerName: AEDesc; compiledScriptID: OSAID): OSAError;
  106.     {$IFC NOT GENERATINGCFM}
  107.     INLINE $2F3C, 16, $1108, $7000, $A82A;
  108.     {$ENDC}
  109. FUNCTION OSAGetHandler(scriptingComponent: ComponentInstance; modeFlags: LONGINT; contextID: OSAID; {CONST}VAR handlerName: AEDesc; VAR resultingCompiledScriptID: OSAID): OSAError;
  110.     {$IFC NOT GENERATINGCFM}
  111.     INLINE $2F3C, 16, $1109, $7000, $A82A;
  112.     {$ENDC}
  113. FUNCTION OSAGetHandlerNames(scriptingComponent: ComponentInstance; modeFlags: LONGINT; contextID: OSAID; VAR resultingHandlerNames: AEDescList): OSAError;
  114.     {$IFC NOT GENERATINGCFM}
  115.     INLINE $2F3C, 12, $110D, $7000, $A82A;
  116.     {$ENDC}
  117. FUNCTION OSAGetAppTerminology(scriptingComponent: ComponentInstance; modeFlags: LONGINT; VAR fileSpec: FSSpec; terminologyID: INTEGER; VAR didLaunch: BOOLEAN; VAR terminologyList: AEDesc): OSAError;
  118.     {$IFC NOT GENERATINGCFM}
  119.     INLINE $2F3C, 18, $110A, $7000, $A82A;
  120.     {$ENDC}
  121. { Errors:
  122.        errOSASystemError        operation failed
  123.     }
  124. FUNCTION OSAGetSysTerminology(scriptingComponent: ComponentInstance; modeFlags: LONGINT; terminologyID: INTEGER; VAR terminologyList: AEDesc): OSAError;
  125.     {$IFC NOT GENERATINGCFM}
  126.     INLINE $2F3C, 10, $110B, $7000, $A82A;
  127.     {$ENDC}
  128. { Errors:
  129.        errOSASystemError        operation failed
  130.     }
  131. { Notes on terminology ID
  132.  
  133.     A terminology ID is derived from script code and language code
  134.     as follows;
  135.  
  136.         terminologyID = ((scriptCode & 0x7F) << 8) | (langCode & 0xFF)
  137. }
  138. {*************************************************************************
  139.     Obsolete versions provided for backward compatibility:
  140. }
  141. FUNCTION ASSetProperty(scriptingComponent: ComponentInstance; contextID: OSAID; {CONST}VAR variableName: AEDesc; scriptValueID: OSAID): OSAError;
  142.     {$IFC NOT GENERATINGCFM}
  143.     INLINE $2F3C, 12, $1101, $7000, $A82A;
  144.     {$ENDC}
  145. FUNCTION ASGetProperty(scriptingComponent: ComponentInstance; contextID: OSAID; {CONST}VAR variableName: AEDesc; VAR resultingScriptValueID: OSAID): OSAError;
  146.     {$IFC NOT GENERATINGCFM}
  147.     INLINE $2F3C, 12, $1101, $7000, $A82A;
  148.     {$ENDC}
  149. FUNCTION ASSetHandler(scriptingComponent: ComponentInstance; contextID: OSAID; {CONST}VAR handlerName: AEDesc; compiledScriptID: OSAID): OSAError;
  150.     {$IFC NOT GENERATINGCFM}
  151.     INLINE $2F3C, 12, $1103, $7000, $A82A;
  152.     {$ENDC}
  153. FUNCTION ASGetHandler(scriptingComponent: ComponentInstance; contextID: OSAID; {CONST}VAR handlerName: AEDesc; VAR resultingCompiledScriptID: OSAID): OSAError;
  154.     {$IFC NOT GENERATINGCFM}
  155.     INLINE $2F3C, 12, $1104, $7000, $A82A;
  156.     {$ENDC}
  157. FUNCTION ASGetAppTerminology(scriptingComponent: ComponentInstance; VAR fileSpec: FSSpec; terminologID: INTEGER; VAR didLaunch: BOOLEAN; VAR terminologyList: AEDesc): OSAError;
  158.     {$IFC NOT GENERATINGCFM}
  159.     INLINE $2F3C, 14, $1105, $7000, $A82A;
  160.     {$ENDC}
  161. { Errors:
  162.         errOSASystemError        operation failed
  163.     }
  164. {************************************************************************}
  165.  
  166. {$ALIGN RESET}
  167. {$POP}
  168.  
  169. {$SETC UsingIncludes := ASDebuggingIncludes}
  170.  
  171. {$ENDC} {__ASDEBUGGING__}
  172.  
  173. {$IFC NOT UsingIncludes}
  174.  END.
  175. {$ENDC}
  176.